package com.chen.controller;

import com.chen.config.ChinaPersonFactory;
import com.chen.config.Person;
import com.chen.spi.StockServiceSpi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/openfeign")
@RestController
public class OpenfeignController {

    @Autowired
    StockServiceSpi stockServiceSpi;
    @Autowired
    ChinaPersonFactory personFactory;

    @GetMapping("/testFeign")
    public void testFeign(){



        stockServiceSpi.test1();
    }
}
